//登录接口请求携带参数的类型
export interface loginFromData {
    username: string,
    password: string
}
//定义所有接口返回的参数都拥有的类型
export interface ResponseData {
    code: number,
    message: string,
    ok: boolean,
}
//定义登录接口返回的数据类型
export interface loginResponseData extends ResponseData {
    data: string
}

//定义获取用户信息返回的数据类型
export interface userInfoResponseData extends ResponseData {
    data: {
        routes: string[],
        buttons: string[],
        roles: string[],
        avatar: string,
        name: string,
    }
}